import request from '@/utils/request'


//查询病例分类
export function caseType(data) {
	return request({
		url: '/case/type/list',
		method: 'get',
		params: data
	})
}

// 查询分类下的病例列表 /case/database/stu/list


export function caseList(data) {
	return request({
		url: '/case/database/stu/list',
		method: 'get',
		params: data
	})
}


// 添加收藏夹 


export function favoriteAdd(data) {
	
	return request({
		
		url: '/favorite/folder/add',
		method: 'POST',
		data
	})
}


// 取消收藏


export function favoriteDel(data) {
	
	return request({
		
		url: '/favorite/folder/delete',
		method: 'DELETE',
		params:data
	})
}

// 病例详情 




export function caseDetails(data) {
	
	return request({
		
		url: '/case/database/stu/details',
		method: 'GET',
		params:data
	})
}

//  caseId 查询 病例讨论 


export function discussList(data:any) {
	return request({
		url: '/case/discuss/list',
		method: 'GET',
	params: data
	})
}

//  发送兵力套餐


export function discussAdd(data:any) {
	return request({
		url: '/case/discuss/add',
		method: 'POST',
data
	})
}


// 收藏夹列表 


export function folderList(data:any) {
	return request({
		url: '/favorite/folder/list',
		method: 'GET',
	params: data
	})
}

// 查询解剖面数量 


export function medicineList() {
	return request({
		url: '/medicine/atlas/num',
		method: 'GET',
	
	})
}
// 书签接口  



export function bookMarkList(data:any) {
	return request({
		url: '/student/user/bookMark/list',
		method: 'GET',
	params: data
	})
}



// 图谱练习记录 
export function recordlistTp(data:any) {
	return request({
		url: '/train/record/list',
		method: 'get',
		params: data
	})
}

// 病例练习记录 
export function recordlistlx(data:any) {
	return request({
		url: '/case/record/list',
		method: 'get',
		params: data
	})
}


// 删除数钱  /student/user/bookMark/del


export function bookMarkDel(data:any) {
	return request({
		url: '/student/user/bookMark/del',
		method: 'DELETE',
		params: data
	})
}


// 添加病例记录 /case/record/


export function caserecordAdd(data:any) {
	return request({
		url: '/case/record/add',
		method: 'GET',
params: data
	})
}
